package com.xiaozhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author 烟尘
 * @since 2023-03-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 题目id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学科类别
     * 语文
     */
    @TableField("subject")
    private String subject;

    /**
     * 题目名称
     */
    @TableField("question_name")
    private String questionName;

    /**
     * 类型
     * 选择题
     * 填空题
     * 判断题
     */
    @TableField("type")
    private String type;

    /**
     * 答案
     */
    @TableField("answer")
    private String answer;

    /**
     * 选项
     */
    @TableField("options")
    private String options;


}
